home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSO Folders 1.xpl < prev    next >
Text File  |  2001-09-01  |  2KB  |  70 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="4"
  3. "COUNT"="2"
  4. "UIPATH 1"="System\File System\Folders\Data"
  5. "UIPATH 2"="Program Options\Microsoft Office\MS Office 97"
  6. "NAME"="Office 97 Folders"
  7. "VERSION"="1.21"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Word Clipart"
  10. "TEXT 2"="Excel Data"
  11. "DESCRIPTION 1"="You can alter the location of different MS Office folders here."
  12. "DESCRIPTION 2"="Please exit all Office programs before changing this settings."
  13. "DESCRIPTION 3"="NOTE: This plug-in might also be enabled if you have Office 2000. This problem is that Office 2000 also creates Office 97 registry entries, so this plug-in can not detect correctly if Office 97 is installed or not."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18.  
  19.  
  20. sPath="HKCU\Software\Microsoft\Office\8.0\"
  21.  
  22. sWWDClipart="HKCU\Software\Microsoft\Office\8.0\Word\Options\PICTURE-PATH"
  23. sXLData="HKCU\Software\Microsoft\Office\8.0\Excel\Microsoft Excel\DefaultPath"
  24. Sub Plugin_Initialize 
  25.  i=RegEnumPaths(sPath)
  26.  if i>2 then
  27.     s=RegReadValue(sWWDClipart)
  28.     SetUIElement 1,s
  29.  
  30.     s=RegReadValue(sXLData)
  31.     SetUIElement 2,s
  32.  else
  33.     Call Disable()
  34.  end if
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  s=GetUIElement(1)
  42.  if len(s)=0 then
  43.   Call MsgError("Unable to update information - Path for Word Cliparts is not valid")
  44.  else
  45.  
  46.   if Right(s,1)="\" then
  47.    s=left(s,len(s)-1)
  48.   end if
  49.   Call RegWriteValue(sWWDClipart,s,1)
  50.  
  51.  end if
  52.  
  53.  
  54.  s=GetUIElement(2)
  55.  if len(s)=0 then
  56.   Call MsgError("Unable to update information - Path for Excel data files is not valid")
  57.  else
  58.  
  59.   if Right(s,1)="\" then
  60.    s=left(s,len(s)-1)
  61.   end if
  62.   Call RegWriteValue(sXLData,s,1)
  63.  
  64.  end if
  65.  
  66. End Sub
  67.  
  68. Sub Plugin_Terminate 
  69. End Sub
  70.